package com.bw.pack

import android.app.Application
import android.content.Context
import android.content.res.Configuration
import android.os.StrictMode
import com.alibaba.android.arouter.launcher.ARouter
import com.bw.base.BaseApp
import dagger.hilt.android.HiltAndroidApp

/**
 * App启动流程
 */
@HiltAndroidApp
class ParkApp:BaseApp(){

    override fun onCreate() {
        super.onCreate()

    }

    private fun initStrictModel(){
        if(BuildConfig.DEBUG){

            //检测线程
            StrictMode.setThreadPolicy(StrictMode.ThreadPolicy.Builder()
                .detectCustomSlowCalls()
                .detectDiskReads()
                .detectDiskWrites()
                .detectNetwork()
                .penaltyLog()
                .build())
            StrictMode.setVmPolicy(StrictMode.VmPolicy.Builder()
                .detectFileUriExposure()
                .detectLeakedClosableObjects()
                .detectActivityLeaks()
                .penaltyLog()
                .build())
        }
    }




}